//
//  BKFourView.m
//  baokaodaxue
//
//  Created by dangyangyang on 15/6/6.
//  Copyright (c) 2015年 宏图教育. All rights reserved.
//

#import "BKFourView.h"

@implementation BKFourView
- (void)awakeFromNib{
    
    self.layer.borderColor = [[UIColor whiteColor]CGColor];
    self.layer.borderWidth = 1.5;
    self.layer.cornerRadius = 3;
    
    
}


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    CGContextSetLineWidth(context, 1.5);
    
    CGContextSetRGBStrokeColor(context, 1, 1, 1, 1);
    
    
    CGFloat height = rect.size.height;
    CGFloat width = rect.size.width/4;
    CGContextMoveToPoint(context, width, 0);
    CGContextAddLineToPoint(context,width, height);
    CGContextStrokePath(context);
    
    CGContextMoveToPoint(context, width*2, 0);
    CGContextAddLineToPoint(context,width*2, height);
    CGContextStrokePath(context);
    
    CGContextMoveToPoint(context, width*3, 0);
    CGContextAddLineToPoint(context,width*3, height);
    CGContextStrokePath(context);
    
}

@end
